Title Banner


Technical Q&A's


ME 03 - Determining the State of the Modern Memory Manager (3-July-96)


Q How do I determine if I am running with the Modern Memory Manager?



A You can tell the state of MMM based on the heapType member in your current Zone. The following function shows how this is done:

#include 
/*
* HaveNewMemoryManager returns true if the new Memory Manager is present
 */
Boolean HaveNewMemoryManager ( void )
{
    THz appZone;

    appZone = GetZone ();
    return ((appZone->heapType & kNewStyleHeap) != 0);
}





Technical Support
Technical Q&As
Previous Question | Contents| Next Question
Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help